@extends('user.base.index')


@section('content')
<!-- Content>
<!-- Messages Drawer -->
	 <div class="block-area" id="text-input">
                <h3 class="block-title">Text Input</h3>
                <form action='/user/{{ $user->id }}' method='post'>
                    <input type='hidden' name='_token' value='{{ csrf_token() }}'>
					<input type='hidden' name='_method' value="PUT">
                    <div class="row">
                        <div class="col-lg-2">
                            <input name='name' type="text" class="form-control m-b-10" placeholder="用户名" value="{{$user->name}}">
                        </div>
                        <div class="col-lg-2">
                            <input name='uemail' type="text" class="form-control m-b-10" placeholder="邮箱" value="{{$user->uemail}}">
                        </div>
                        <div class="col-lg-2">
                            <input name='tel' type="text" class="form-control m-b-10" placeholder="电话" value="{{$user->tel}}">
                        </div>
                        <div class="col-lg-2">
                            <input name='qq' type="text" class="form-control m-b-10" placeholder="qq" value="{{$user->qq}}">
                        </div>
						<div class="col-lg-2">
							<input name='password' type="password" class="form-control m-b-10" placeholder="密码" value="{{$user->password}}">
						</div>
                        <div class="col-lg-2">
                            <select class="form-control input-sm m-b-10" name='sex'>
                                <option>---请选择---</option>
                                <option value='1' {{ $user->state == 1?'selected':'' }}>正常</option>
                                <option value='2' {{ $user->state == 2?'selected':'' }}>冻结</option>
                            </select>
                        </div>
                        <div class='row'>
                            <div class="col-lg-12">
                                <input type='submit' class='btn' value='修改'>
                            </div>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                </form>
                <!-- 显示验证规则失败时的信息 -->
                @if (count($errors) > 0)
                    <div class="alert alert-danger">
                        <ul>
                            @foreach ($errors->all() as $error)
                                <li>{{ $error }}</li>
                            @endforeach
                        </ul>
                    </div>
                @endif
    </div>
@stop